/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dtd.to.xmlschema;

import java.util.ArrayList;
import java.util.List;

/**
 * trieda reprezentujuca jednotlive elementy v ramci DTD
 * 
 * @author Tomas Plevko <324589@mail.muni.cz>
 */
public class DTDElement {
    
    private String name;
    private String properties;
    
    private List<DTDAttribute> attributeList = new ArrayList<DTDAttribute>();
    
    public DTDElement(){
    }
    
    public DTDElement(String name, String properties){

        this.name = name;
        this.properties = properties;
    }
    
    public void insertNewAttribute(DTDAttribute attribute, String name) {
        attributeList.add(attribute);
        
    }
    
    public void setName(String name) {
        
        this.name = name;
    }
    
    public void setProperties(String properties) {
        
        this.properties = properties;
    }
    
    public String getName() {
        return name;
    }
    
    public String getProperties() {
        return properties;
    }
    
    public List<DTDAttribute> getAttributeList() {
        return attributeList;
    }

    @Override
    public String toString() {
        return "DTDElement{" + "name=" + name + ", properties=" + properties + ", attributeList=" + attributeList + '}';
    }
    
}
